package cn.usian.service.impl;


import cn.usian.common.R;
import cn.usian.dao.OrderDao;
import cn.usian.entity.OrderDto;
import cn.usian.service.OrderService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;

@Service
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderDao orderDao;

    @Override
    public R<Page<OrderDto>> page(Integer page, Integer pageSize, Long number, String beginTime, String endTime) {
        Page<OrderDto> orderDtoPage = orderDao.findPage(new Page<OrderDto>(page,pageSize) ,number,beginTime,endTime);
        return R.success(orderDtoPage);
    }
}
